package com.wpre.booksystem.mapper;

import com.wpre.booksystem.model.UserInfo;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: LianBao
 * Date: 2024-11-12
 * Time: 21:50
 */
@Mapper
public interface UserMapper {

    @Select("select * from user_info where delete_flag =0 and user_name =#{name}")
    UserInfo selectUser(String name);

    @Insert("insert into user_info(user_name,password) values (#{username},#{password})")
    void insertUser(String username, String password);
}
